function WASFrame(frameX, frameY, frameWidth, frameHeight, delay, offset, lineOffsets){
	this.x = frameX;
	this.y = frameY;
	this.width = frameWidth;
	this.height = frameHeight;
	this.delay = delay;
	this.frameOffset = offset;
	this.lineOffsets = lineOffsets;

	/** Image格式图像 */
	this.image=null;

	/**
	 * 图像原始数据<br>
	 * 0-15位RGB颜色(565)<br>
	 * 16-20为alpha值<br>
	 * pixels[x+y*width]
	 */
	this.pixels=null;
}

WASFrame.prototype = {
    constructor: WASFrame,  //每个函数都有prototype属性，指向该函数原型对象，原型对象都有constructor属性，这是一个指向prototype属性所在函数的指针
	setPixels: function(pixels){
		this.pixels = pixels;
    },
	getPixels:function () {
		return this.pixels;
		
	}
	,
	getFrameOffset:function () {
		return this.frameOffset;
	},
	getLineOffsets:function () {
		return this.lineOffsets;
	},
	getWidth:function () {
		return this.width;
	},
	getHeight:function () {
		return this.height;
	},
	getX:function () {
		return this.x;
	},
	getY:function () {
		return this.y;
	}
}
 